home *** CD-ROM | disk | FTP | other *** search
- #Inventor V2.0 ascii
- Separator {
-
- # Interface for the rotation axis
- Separator {
- BaseColor { rgb 1 0 0 }
-
- DEF AXIS_PT1_DRAGGER Translate2Dragger {
- translation 0 -2 0
- translator DEF DRAG_BALL Separator {
- Sphere { radius .2 }
- }
- translatorActive DEF DRAG_YELLOW_BALL Separator {
- BaseColor { rgb 1 1 0 }
- Sphere { radius .2 }
- }
- }
- DEF AXIS_PT2_DRAGGER Translate2Dragger {
- translation 0 8 0
- translator USE DRAG_BALL
- translatorActive USE DRAG_YELLOW_BALL
- }
- Coordinate3 {
- point = Concatenate { type "MFVec3f"
- input0 = USE AXIS_PT1_DRAGGER . translation
- input1 = USE AXIS_PT2_DRAGGER . translation
- } . output
- }
- LineSet {}
- }
-
- # Interface for the profile curve
- Separator {
- BaseColor { rgb 1 0 0 }
- DEF PROF_PT1_DRAGGER Translate2Dragger {
- translation 1 .2 0
- translator DEF DRAG_CUBE Separator {
- Cube { width .2 height .2 depth .2 }
- }
- translatorActive DEF DRAG_YELLOW_CUBE Separator {
- BaseColor { rgb 1 1 0 }
- Cube { width .2 height .2 depth .2 }
- }
- }
- DEF PROF_PT2_DRAGGER Translate2Dragger {
- translation 1.1 1.6 0
- translator USE DRAG_CUBE
- translatorActive USE DRAG_YELLOW_CUBE
- }
- DEF PROF_PT3_DRAGGER Translate2Dragger {
- translation 3.2 2.2 0
- translator USE DRAG_CUBE
- translatorActive USE DRAG_YELLOW_CUBE
- }
- DEF PROF_PT4_DRAGGER Translate2Dragger {
- translation 4 4.75 0
- translator USE DRAG_CUBE
- translatorActive USE DRAG_YELLOW_CUBE
- }
- DEF INPUT_COORDS Coordinate3 {
- point = Concatenate { type "MFVec3f"
- input0 = USE PROF_PT1_DRAGGER . translation
- input1 = USE PROF_PT2_DRAGGER . translation
- input2 = USE PROF_PT3_DRAGGER . translation
- input3 = USE PROF_PT4_DRAGGER . translation
- } . output
- }
- DrawStyle { lineWidth 3 }
- LineSet {}
- }
-
- Coordinate3 {
- point = DEF REVOLVER RevoSurfEngine {
- axisPt1 = USE AXIS_PT1_DRAGGER . translation
- axisPt2 = USE AXIS_PT2_DRAGGER . translation
- profileCoords = USE INPUT_COORDS . point
- } . gridOfCoords
- }
- ShapeHints {
- vertexOrdering COUNTERCLOCKWISE
- }
- # IndexedFaceSet {
- # coordIndex = USE REVOLVER . faceIndices
- # }
- # QuadMesh {
- # verticesPerColumn 4
- # verticesPerRow 22
- # }
- NurbsSurface {
- numUControlPoints 22
- numVControlPoints 4
- uKnotVector [ 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
- 11, 12, 13, 14, 15, 16, 17, 18, 19, 19, 19, 19 ]
- vKnotVector [ 0, 0, 0, 0, 1, 1, 1, 1 ]
- }
- }
-